<!doctype html>
<html>
	<head>
		<script src="../../tools/test/htmltest.js"></script>
		<script src="../../node_modules/chai/chai.js"></script>
		<script>
			window.addEventListener('message', function(e) {
				if (e.data.type === 'test') {
					chai.assert.equal(e.data.data, 'hello!');
					done();
				} else {
					e.source.postMessage({
						url: e.data.url,
						err: 0,
						resource: 'hello!'
					}, '*');
				}
			});
		</script>
	</head>
	<body>
		<iframe src="html-import-sandbox-iframe.html"></iframe>
	</body>
</html>
